import request from '@/utils/request'

export function listInspectItem() {
  return request({ url: '/toiletv2/toiletBillV2/items', method: 'get' })
}
export function listBills(query) {
  return request({ url: '/toiletv2/toiletBillV2/bills', method: 'get', params: query })
}

// 查询V2市政公厕管养-异常工单列表

export function listToiletBillV2(query) {
  return request({ url: '/toiletv2/toiletBillV2/list', method: 'get', params: query })
}

// 查询V2市政公厕管养-异常工单详细
export function getToiletBillV2(id) {
  return request({ url: '/toiletv2/toiletBillV2/' + id, method: 'get' })
}

// 新增V2市政公厕管养-异常工单
export function addToiletBillV2(data) {
  return request({ url: '/toiletv2/toiletBillV2', method: 'post', data: data })
}

// 修改V2市政公厕管养-异常工单
export function updateToiletBillV2(data) {
  return request({ url: '/toiletv2/toiletBillV2', method: 'put', data: data })
}

// 删除V2市政公厕管养-异常工单
export function delToiletBillV2(id) {
  return request({ url: '/toiletv2/toiletBillV2/' + id, method: 'delete' })
}
